import service from '@/utils/request'


export function getQuestionListService(params) {
    return service({
        url: "/question/page/list",
        method: "get",
        params
    });
}


export function addQuestionService(data) {
    return service({
        url: "/question",
        method: "post",
        data
    });
}

export function editQuestionService(data) {
    return service({
        url: "/question",
        method: "put",
        data
    });
}

export function deleteQuestionService(id) {
    return service({
        url: `/question/${id}`,
        method: "delete"
    });
}

export function getQuestionDetailService(id) {
    return service({
        url: `/question/${id}`,
        method: "get"
    });
}